package com.threefish.modules.sys.entity.history;

import com.threefish.common.entity.AbstractBaseEntity;
import org.nutz.dao.entity.annotation.*;

import java.util.Date;

/**
 * @author 黄川 306955302@qq.com
 * @date: 2018/6/19
 * 描述此类：数据导入效验表
 */

@Table("sys_data_import_history")
@Comment("数据导入历史")
public class DataImportHistory extends AbstractBaseEntity {

    @Name
    @Prev(els = @EL("$me.uuid()"))
    @ColDefine(width = 32, notNull = true)
    @Comment("主键")
    @Column("id")
    private String id;

    @Column
    private String userid;

    @Column
    private String userDesc;

    @Column
    @Comment("临时文件")
    private String attachId;

    @Column
    private int tableId;

    @Column
    @Comment("表名")
    private String tableName;

    @Column
    @Comment("表类型")
    private int tableType;

    @Column
    @Comment("导入模式")
    private int importType;

    @Column
    @Comment("0 待检查 1检查中 2检查失败 3导入中 4导入成功 5导入失败")
    private int staus;

    @Column
    @ColDefine(width = 2000)
    private String errorMsg;

    @Column
    @ColDefine(type = ColType.TEXT)
    private String errorMsgInfo;

    @Column
    @Comment("耗时")
    private String consuming;

    @Column
    @Comment("创建时间")
    private Date createDate;

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getTableType() {
        return tableType;
    }

    public void setTableType(int tableType) {
        this.tableType = tableType;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public int getTableId() {
        return tableId;
    }

    public void setTableId(int tableId) {
        this.tableId = tableId;
    }

    public String getAttachId() {

        return attachId;
    }

    public void setAttachId(String attachId) {
        this.attachId = attachId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getImportType() {
        return importType;
    }

    public void setImportType(int importType) {
        this.importType = importType;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUserDesc() {
        return userDesc;
    }

    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    public int getStaus() {
        return staus;
    }

    public void setStaus(int staus) {
        this.staus = staus;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsgInfo() {
        return errorMsgInfo;
    }

    public void setErrorMsgInfo(String errorMsgInfo) {
        this.errorMsgInfo = errorMsgInfo;
    }

    public String getConsuming() {
        return consuming;
    }

    public void setConsuming(String consuming) {
        this.consuming = consuming;
    }
}
